//
//  ContactManager.h
//  OC6_字典&数组作业练习
//
//  Created by dllo on 15/10/30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Contact;


@interface ContactManager : NSObject

@property (nonatomic, retain) NSMutableDictionary *data;

- (id)init;

- (void)addPerson:(Contact *)contact;

- (void)infoAllContact;

- (NSMutableArray *)sortByGroup:(NSString *)groupName;

- (NSMutableArray *)searchByPhone:(NSString *)phone;

- (NSMutableArray *)sortByAge:(NSString *)sex;

- (void)deleteByName:(NSString *)name;

- (void)deleteByGroup:(NSString *)groupName;

@end
